package com.itheima.oopadvanced.codeblock;

import java.util.ArrayList;

/**
 * @author Anomaly
 * @date 2022/12/10 20:46
 */
public class PokerDemo {
    public static ArrayList<String> cards = new ArrayList<>();

    static {
        String[] colors = {"♥", "♠", "♣", "♦"};
        String[] sizes = {"3", "4", "5", "6", "7", "8", "9", "10", "J", "Q", "K", "A", "2"};
        for (int i = 0; i < colors.length; i++) {
            for (int j = 0; j < sizes.length; j++) {
                String card = colors[i] + sizes[j];
                cards.add(card);
            }
        }
        cards.add("小王");
        cards.add("大王");
    }
}
